﻿<%@ Control Language="C#" AutoEventWireup="true" CodeFile="loadInfo.ascx.cs" Inherits="Admin_ucControl_loadInfo" %>
<asp:HyperLink ID="hyThem" runat="server" NavigateUrl="~/Admin/insert-thong-tin.aspx">Thêm Thông Tin</asp:HyperLink>
<br />
<asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" OnRowDataBound="GridView1_RowDataBound"
    Width="70%">
    <Columns>
        <asp:HyperLinkField DataTextField="Id_Info" DataNavigateUrlFormatString="~/Admin/insert-thong-tin.aspx?id={0}"
            HeaderText="ID" DataNavigateUrlFields="Id_Info" HeaderStyle-Width="50px" HeaderStyle-HorizontalAlign="Center">
            <HeaderStyle Width="50px"></HeaderStyle>
            <ItemStyle HorizontalAlign="Center" />
        </asp:HyperLinkField>
        <asp:BoundField DataField="Info_Title" HeaderText="Title" ItemStyle-Width="150px">
            <ItemStyle Width="150px" HorizontalAlign="Center"></ItemStyle>
        </asp:BoundField>
        <%--<asp:BoundField DataField="Information" HeaderText="Information" ItemStyle-Width="350px" />--%>
        <asp:TemplateField HeaderText="Information" ItemStyle-Width="350px">
            <ItemTemplate>
                <asp:Label ID="lbInfo" runat="server"></asp:Label>
            </ItemTemplate>
            <ItemStyle Width="350px"></ItemStyle>
        </asp:TemplateField>
        <asp:BoundField DataField="MenuName" HeaderText="Type" ItemStyle-Width="150px">
            <ItemStyle Width="150px" HorizontalAlign="Center"></ItemStyle>
        </asp:BoundField>
        <%--  <asp:BoundField DataField="MenuItemName" HeaderText="Type" ItemStyle-Width="150px" />--%>
        <asp:TemplateField HeaderText="Hiển thị">
            <ItemTemplate>
                <asp:HyperLink ID="hyxemtruoc" runat="server"  Target="_blank" NavigateUrl='<%# "~/Admin/hienthi-noidung.aspx?keepThis=true&TB_iframe=true&width=700&height=410&id=" + Eval("Id_Info") %>'  ToolTip="Hiển thị nội dung" CssClass="thickbox"> Xem trước</asp:HyperLink>
            </ItemTemplate>
            <ItemStyle HorizontalAlign="Center" />
        </asp:TemplateField>
    </Columns>
</asp:GridView>
